From 6e7334338f0e3d89ec9d4bf00c77f0d424db22a0 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 13 Jan 2011 01:26:44 +0000 Subject: [PATCH] xl: correct test for domid on error exit from domain_create The previous changeset 22739:d839631b6048 changed the initialisation of domid without changing the corresponding cleanup test. Oops. Signed-off-by: Ian Jackson --- tools/libxl/xl_cmdimpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index d29d661a0f..d1b9f14fe4 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -1627,7 +1627,7 @@ start: error_out: release_lock(); - if (domid) + if (domid > 0) libxl_domain_destroy(&ctx, domid, 0); out: -- 2.30.2